-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[GRPC] Add more details for GRPC error responses #19568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Karen X <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This is a lot more helpful.
❌ Gradle check result for 96b24d1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Karen X <[email protected]>
❕ Gradle check result for 786c030: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19568 +/- ##
============================================
- Coverage 73.07% 73.07% -0.01%
+ Complexity 70635 70630 -5
============================================
Files 5723 5723
Lines 323490 323503 +13
Branches 46851 46851
============================================
+ Hits 236401 236405 +4
- Misses 67977 68023 +46
+ Partials 19112 19075 -37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Karen X <[email protected]>
❕ Gradle check result for 667df97: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
…ect#19568) Signed-off-by: Karen X <[email protected]>
…ect#19568) Signed-off-by: Karen X <[email protected]>
Description
The existing GRPC errors returned only give the top level error, for example:
With this change, it will add more details (matching the HTTP one), which make it easier to debug, for example:
which matches the HTTP one:
A point to note is that it will return the HTTP status code as well (
"status": 400
) in GRPC error responses. Amenable to opinions if this is a blocker, but have left the entire XContent output here without modifications for now.Related Issues
Resolves #18926
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.